package com.powernode.constant;

/**
 * @description:
 * @author: mky
 * @date: 2024/7/4 14:50
 * @version: 1.0
 */
public enum BusinessEnum {
    UN_AUTHORIZATION(401,"未授权-------------------999"),
    SUCCESS(200,"ok"),
    LOGINFAILURE(409,"登录失败"),
    OPERATION_FAIL(-1,"操作失败"),
    ACCESS_DENY_FAIL(403,"权限不足，请联系管理员"),
    SERVER_INNER_ERROR(304,"服务内部错误");

    ;

    private Integer code;
    private String msg;

    BusinessEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
